package com.ems.pojo.permission;

import java.util.List;

/**
 * @Auther: 伟伟
 * @Date: 2019/10/5
 * @Description: 描述
 * @Version: 1.0
 */
public class Action {
    private int action_id;
    private String action_name;
    private String action_action;
    private int parent_id;
    private String url;
    private boolean parent = true; //是否是父权限
    private boolean have = false; //对应的角色是否有该权限
    private List<Action> list;

    public int getAction_id() {
        return action_id;
    }

    public void setAction_id(int action_id) {
        this.action_id = action_id;
    }

    public String getAction_name() {
        return action_name;
    }

    public void setAction_name(String action_name) {
        this.action_name = action_name;
    }

    public String getAction_action() {
        return action_action;
    }

    public void setAction_action(String action_action) {
        this.action_action = action_action;
    }

    public int getParent_id() {
        return parent_id;
    }

    public void setParent_id(int parent_id) {
        this.parent_id = parent_id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public List<Action> getList() {
        return list;
    }

    public void setList(List<Action> list) {
        this.list = list;
    }

    public boolean isParent() {
        return parent;
    }

    public void setParent(boolean parent) {
        this.parent = parent;
    }

    public boolean isHave() {
        return have;
    }

    public void setHave(boolean have) {
        this.have = have;
    }

    @Override
    public String toString() {
        return "Action{" +
                "action_id=" + action_id +
                ", action_name='" + action_name + '\'' +
                ", action_action='" + action_action + '\'' +
                ", parent_id=" + parent_id +
                ", url='" + url + '\'' +
                ", parent=" + parent +
                ", have=" + have +
                ", list=" + list +
                '}';
    }
}
